package com.iss.lxhproject.controller;


import com.iss.lxhproject.entity.SaleList;
import com.iss.lxhproject.service.SaleListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SaleListController {
    @Autowired
    SaleListService service;
    @RequestMapping("saleList")
    public List<SaleList> selectAll(){
       List<SaleList>lists= service.selectAll();
        System.out.println("lists=========="+lists);
       return lists;
    }
}
